package REDES2;

import javax.swing.ImageIcon;
import javax.swing.JOptionPane;

public class test {
	public static void main(String[] args) {
		ImageIcon  i = testeicon.createImageIcon("invite.jpg");
		int accept = JOptionPane.showConfirmDialog(null,
		"Jogar com ?", "Convite", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, i);
		if (accept == JOptionPane.YES_OPTION)
			System.out.println("aceitou");
		else 
			System.out.println("recusou");
		
		
	}
	
}
//String t = "ABC//EDE//FFF";
//String t2[] = t.split("//");
//System.out.println(t);
//for (int i = 0; i < t2.length; i++) {
//	System.out.println(t2[i]);
//}